package com.association.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.apache.commons.lang3.StringUtils;

/**
 * Created by xxy on 2020/6/16.
 */
@Getter
@AllArgsConstructor
public enum  CodeEnum {
    LOGIN_ERROR("10041","账号或者密码错误,请重新输入"),
    LAY_TABLE("0","操作成功"),
    AUTH_NOT("10001","权限不足或执行操作失败"),
    SUCCESS("200", "成功"),
    LOGIN_TICKED("10033", "您的账号于{time}在另一台设备上登录，如非本人操作，可能密码已泄露，建议及时修改密码"),
    LOGIN_INVALID("10034", "您的登录已失效，请重新登录"),
    INVALID_GPS("10311", "定位坐标无效"),
    MISSING("10401", "缺少必填参数"),
    INVALID("10402", "非法的参数"),
    PROTOCOL_INVALID("10403", "协议用户参数无效"),
    NOT_ALLOWED("10405", "缺少身份验证信息！请重新登录后再操作！"),
    SERVER("10500", "请求失败，请稍后再试"),
    EXCELSERVER("10321", "excel格式不正确"),
    UNACCESS("201", "成功导入%s,失败导入%s"),
    UNBindERROR("10323", "解绑失败"),
    PHONE_NOT("10324", "未获取到该订单手机号"),
    PHONE_ERROR("10325", "外呼失败,请重新再试"),
    SEARCHERROR("10326", "主数据系统提醒您：请稍后再试！"),
    SERERROR_ORGHOLIDAY("10327", "主数据节假日配置获取失败，请稍后再试！"),
    SERERROR_PREMIUME("10328", "获取保价手续费失败，请稍后再试！"),
    CY_CALLED("10330", "该号码已拨打"),
    NABS_CUSTOMER_TAG_ERROR("10340", "标签添加失败，请稍后再试！"),
    ADD_ERROR_LIMIT_MAX_NUM("10331", "添加失败，超过最大限定数！"),
    TASK_PUSH_ERROR("10332", "工服推送失败，请稍后再试！"),
    MOBILE_ILLEGAL("10333", "手机号格式错误！"),
    YBBILL_ERROR("10334", "账单数据获取失败，请稍后再试"),
    FP_NOT_FOUND("10335", "未查询到相关记录"),
    FP_HAS_BIND("10336", "有客户已绑定其他报价单"),
    FP_NOT_BIND("10337", "未绑定报价单"),
    FP_MULTI_BIND("10338", "绑定多条报价单"),


    ZXD_COMMON_FAIL("10624", "操作失败，请稍后再试"),
    CRM_CUSTOMER_DATA_ILLEGAL("10632", "参数错误"),

    NO_EXPRESS_ERROR("1139", "无相关快件"),
    JG_NET_ERROR("2000", "网络异常，请稍后再试(2000)"),//请求金刚接口返回错误
    NO_PAGE_ERROR("5004","所查询的面单号不存在"),
    ADDRESS_LEN_WARN("10502","地址长度超过2000,请重试"),
    ADDRESS_SIZE_WARN("10503","地址条数超限,请重试"),
    NET_BUSY_ERROR("5005","问题件查询接口压力大，稍后再试"),
    FILE_EXTEND_LIMIT_ERROR("10507","上传excel文件格式不对"),
    MAIL_DATA_DIGEST_WRONG("10701","请输入正确的K码和密钥"),
    AUTHORIZE_MAIL_ERROR("10702","面单授权异常，请稍后再试"),
    AUTHORIZE_MAIL_ALREADY("10703","面单源已添加，请添加其他的"),
    KHXX_WARN("10703","客户信息获取异常"),
    ADDRESS_Format_WARN("10509","地址格式不对"),
    FILE_SIZE_LIMIT_LAGER("10508","上传excel文件过大")
    ;
    private String code;
    private String message;


}
